home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
pctj8409.arc
/
SWITCH.ASM
< prev
next >
Wrap
Assembly Source File
|
1986-09-14
|
512b
|
24 lines
; ROUTINE TO SWITCH TWO STRINGS
;
switch proc far
;
push si ; save registers
push di
push cx
push ax
;
cld ; forword direction
switch1:
mov al,[di] ; get byte from destination
movsb ; move from source to destination
mov es:[si-1],al ; put byte in source
loop switch1 ; loop back for more
;
pop ax ; restore registers
pop cx
pop di
pop si
ret
;
switch endp